<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');

/**
 * @package name
 * @author Jason Fong <QQ:740168902>
 * Date:2012-12-12 13:42:09
 * @copyright (c) 2012-12-12, Jason Fong
 * @package name
 */
// ------------------------------------------------------------------------

require(APPPATH.'libraries/smarty/Smarty.class.php');
class CI_Smartyinc  extends Smarty{
    
    public function __construct() {
        parent::__construct();
        $this->caching = false;    
        $this->cache_lifetime = 30*24*3600; //缓存生命周期
        
        $this->setTemplateDir(FCPATH.'themes/default/');    //指定模板目录
        $this->setCompileDir(APPPATH.'templates_c');   //指定编译目录
        $this->setCacheDir(APPPATH.'cache');    //指定缓存目录
        
        $this->left_delimiter = '<{';
        $this->right_delimiter = '}>';
    }
}
?>
